#ifndef _LA_H_
#define _LA_H_

typedef enum TokenType {
    TT_STRING, TT_INREDIRECT, TT_OUTREDIRECT, TT_PIPE, TT_BACKGROUND,                       // <string>, <, >, |, &,
    TT_IEXIT, TT_IJOBS, TT_IECHO, TT_IFG, TT_IBG, TT_HISTORY, TT_CD, TT_EXEC,               // exit, jobs, echo, fg, bg, history
    TT_ECHOSTATUS, TT_PERCENTINT,                                                           // $status, %<int>,
    TT_EOLTOKEN, TT_ERRORTOKEN,
} TokenType;

extern char line_buf[];
extern int line_buf_size;
extern char token_buf[];
extern int token_buf_size;
extern TokenType current_token;

extern TokenType read_token(void);
extern void read_string(TokenType *tt, char *tb);
extern void put_back(void);
#endif

